
package com.shangsi.service.impl;

import com.shangsi.mapper.TAccountMapper;
import com.shangsi.model.TAccount;
import com.shangsi.service.AccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author dzd
 * @date 2021-12-19
 */
@Service
public class AccountServiceImpl implements AccountService {

    @Resource
    TAccountMapper tAccountMapper;
    @Override
    public Boolean decrease(TAccount tAccount) {
        int decrease = tAccountMapper.decrease(tAccount);
        return decrease>0;
    }
}
